package com.ahm.eurekaprovider.serviceprovider.controller;

import com.ahm.eurekaprovider.serviceprovider.pojo.Product;
import com.ahm.eurekaprovider.serviceprovider.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author anhaimeng
 * @title: ProductController
 * @projectName eurekademo002
 * @description: TODO
 * @date 2021/10/1817:59
 */
/*功能描述
 * @author ahm
 */
@RestController
@RequestMapping("/product")
public class ProductController {

    @Resource
    private ProductService productService;

    @GetMapping("/list")
    public List<Product> selectProductList(){
        return productService.selectProductList();
    }





}
